import time

from selenium.webdriver.common.by import By

from base.app_base_page import AppBasePage



class pageEnterhome(AppBasePage):
    def __init__(self, driver):
        super().__init__(driver)
        self.__img_02 = (By.ID, 'com.tpshop.malls:id/start_img')


    def page_swipe_enter_home(self):
        time.sleep(4.5)
        for i in range(3):
            self.driver.swipe(start_y=1000, start_x=900, end_y=1000, end_x=100, duration=100)
        self.app_base_click(self.__img_02)

